package com.cg.service;

import com.cg.entity.Events;

import java.util.List;

public interface EventsService {
    //列表
    List<Events> eventsList(Integer userId, Integer categoryId, String title,Integer priority,Integer status);

    //添加事件
    void addevent(Integer userId, String title, Integer categoryId, String startDate, Integer priority, String endDate, Integer status, String description);

    //根据id查询
    Events findEventById(Integer eventId);

    void editEvent(String title, Integer categoryId, String startDate, Integer priority, String endDate, Integer status, String description,Integer eventId);

    void deleteEvent(Integer eventId);

    int findByCategoryId(Integer categoryId);

    int findByTitle(String title,Integer userId);
}
